<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
		<title>贝达教育</title>
		<link href="../../css/style.css" rel="stylesheet" type="text/css" />
		<link href="../../css/mui.min.css" rel="stylesheet" type="text/css" />
	</head>

	<body style="background: #fff!important;">
		<div class="mui-content">

		</div>
		<script src="../../js/mui.min.js"></script>
		<script>
			mui.init({ 
				gestureConfig: {
					doubletap: true,
				},
				subpages: [{
					url: 'schoolsrefresh.html',
					id: 'schoolsrefresh',
					styles: {
						top: 0,
						bottom: 0
					}
				}]
			});

			//处理返回键
			var backButtonPress = 0;
			var old_back = mui.back;
			mui.back = function(event) {
				var adWebview = plus.webview.getWebviewById('ad_detail');
				if(adWebview) {
					adWebview.close();
				} else {
					backButtonPress++;
					if(backButtonPress > 1) {
						plus.runtime.quit();
					} else {
						plus.nativeUI.toast('再按一次退出应用');
					}
					setTimeout(function() {
						backButtonPress = 0;
					}, 1000);
					return false;
				}
			};
		</script>
		
	</body>

</html>